Calculating The Charge Of An Atom